import request from '@/utils/request'


// 查询所有预约设置
export function listOrderSetting(query) {
  return request({
    url: '/reserve/orderSetting/list',
    method: 'get',
    params: query
  })
}

// 查询单条
export function getOrderSetting(orderDate) {
  return request ({
    url: '/reserve/orderSetting/' + orderDate,
    method: 'get'
  })
}

// 更新预约上限
export function updateOrderSetting(data) {
  return request ({
    url: '/reserve/orderSetting/updateOrderSetting',
    method: 'post',
    data: data
  })
}

// 新增预约设置
export function addOrderSetting(data) {
  return request ({
    url: '/reserve/orderSetting/addOrderSetting',
    method: 'post',
    data: data
  })
}

